<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>v-bind</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>
<body>
    <div id="app">
        <input type="text" v-model="num">
        <div>{{num}}</div>
        <div v-model="value">{{value}}</div>

        <button v-on:click="value++">+1</button>
        <button v-on:click="value--">-1</button>
        <button @click="value--">-1</button>
        <button @click="add()">-1</button>
        <button @click.stop="stopClick">-1</button>
    </div>
    <script>
        var app=new Vue({
            el:"#app",
            data:{
                message:"hello vue",
                message2:"<h1>hello vue</h1>",
                num:0,
                value:0,
            },
            method:{
                stopClick(){
                    console.log("stop click")
                }
            }
        })
    </script>
</body>
</html>